package kr.hkit.powerjava.chapter08.work;

public class Average {
	private double average;
	private int first;
	private int second;
	private int third;
	
	public double getAverage(int first, int second) {
		this.first = first;
		this.second = second;
		this.average = (this.first + this.second) / 2.0;
		return average;
	}
	
	public double getAverage(int first, int second, int third) {
		this.first = first;
		this.second = second;
		this.third = third;
		this.average = (this.first + this.second + this.third) / 3.0;
		return average;
	}
}
